*** Regression analysis codes

**1. Model 1-4
 logit dondummy ib(2). CONDITION
 estimates store m1, title(Model 1)
 
 logit dondummy ib(2). CONDITION i.Asian 
 estimates store m2, title(Model 2)
 
 logit dondummy ib(2). CONDITION  I_Q6
 estimates store m3, title(Model 3)
 
logit dondummy ib(2). CONDITION i.Asian I_Q6
estimates store m4, title(Model 4)

estout m1 m2 m3 m4, cells(b(star fmt(3)) se(par fmt(2))) ///
   legend label varlabels(_cons Constant)

**2. Model 5-8   
   
 reg I_Q7 ib(2). CONDITION
 estimates store m5, title(Model 5)
 
reg I_Q7 ib(2). CONDITION i.Asian 
estimates store m6, title(Model 6)

reg I_Q7 ib(2). CONDITION I_Q6
estimates store m7, title(Model 7)

reg I_Q7 ib(2). CONDITION i.Asian I_Q6
estimates store m8, title(Model 8)

estout m5 m6 m7 m8, cells(b(star fmt(3)) se(par fmt(2))) ///
   legend label varlabels(_cons Constant)
   
**3. Model 9-12   
   
 reg I_Q7 ib(2). CONDITION if I_Q7>0
 estimates store m9, title(Model 9)
 
reg I_Q7 ib(2). CONDITION i.Asian if I_Q7>0
estimates store m10, title(Model 10)

reg I_Q7 ib(2). CONDITION I_Q6 if I_Q7>0
estimates store m11, title(Model 11)

reg I_Q7 ib(2). CONDITION i.Asian I_Q6 if I_Q7>0
estimates store m12, title(Model 12)

estout m9 m10 m11 m12, cells(b(star fmt(3)) se(par fmt(2))) ///
   legend label varlabels(_cons Constant)
   
 **4. Post-hoc Results on Condition Effects (whether to donate)
 gen dondummy=1
replace dondummy =0 if I_Q7==0

logit dondummy ib2.CONDITION, nolog
pwcompare CONDITION, effects eform

**Effects of Condition on Donation Amount among Full Sample
oneway I_Q7 CONDITION, tabulate
pwmean I_Q7, over (CONDITION) effects

**Effects of Condition on Donation Amount among Donor Sample Only
oneway I_Q7 CONDITION if dondummy==1, tabulate

